function editInfo(initState = [], action) {
  const { type, payload } = action;
  switch (type) {
    case 'INCREMENT_INFO':
      return [...initState, payload];
    default:
      return [...initState];
  }
}

export default editInfo;